body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
    monospace;
}

/* 添加Markdown预览样式 */
.markdown-preview {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
}

.markdown-preview h1,
.markdown-preview h2,
.markdown-preview h3,
.markdown-preview h4,
.markdown-preview h5,
.markdown-preview h6 {
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  font-weight: 600;
  line-height: 1.25;
  color: #222;
}

.markdown-preview h1 {
  font-size: 2em;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.3em;
}

.markdown-preview h2 {
  font-size: 1.5em;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.3em;
}

.markdown-preview h3 {
  font-size: 1.25em;
}

.markdown-preview h4 {
  font-size: 1em;
}

.markdown-preview p {
  margin-top: 0;
  margin-bottom: 16px;
}

.markdown-preview a {
  color: #1890ff;
  text-decoration: none;
}

.markdown-preview a:hover {
  text-decoration: underline;
}

.markdown-preview img {
  max-width: 100%;
  box-sizing: border-box;
  border-radius: 4px;
}

.markdown-preview ul,
.markdown-preview ol {
  padding-left: 2em;
  margin-top: 0;
  margin-bottom: 16px;
}

.markdown-preview li {
  margin-bottom: 0.25em;
}

.markdown-preview blockquote {
  margin: 0;
  padding: 0 1em;
  color: #6a737d;
  border-left: 0.25em solid #dfe2e5;
}

.markdown-preview pre {
  padding: 16px;
  overflow: auto;
  font-size: 85%;
  line-height: 1.45;
  background-color: #f6f8fa;
  border-radius: 3px;
  margin-bottom: 16px;
}

.markdown-preview code {
  font-family: SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace;
  padding: 0.2em 0.4em;
  margin: 0;
  font-size: 85%;
  background-color: rgba(27, 31, 35, 0.05);
  border-radius: 3px;
}

.markdown-preview pre code {
  padding: 0;
  margin: 0;
  font-size: 100%;
  background-color: transparent;
  border: 0;
}

.markdown-preview table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 16px;
}

.markdown-preview table th,
.markdown-preview table td {
  padding: 6px 13px;
  border: 1px solid #dfe2e5;
}

.markdown-preview table tr {
  background-color: #fff;
  border-top: 1px solid #c6cbd1;
}

.markdown-preview table tr:nth-child(2n) {
  background-color: #f6f8fa;
}

.markdown-preview hr {
  height: 0.25em;
  padding: 0;
  margin: 24px 0;
  background-color: #e1e4e8;
  border: 0;
}

.markdown-preview input[type="checkbox"] {
  margin-right: 0.5em;
  vertical-align: middle;
}

/* 添加一些博客风格的样式 */
.markdown-preview blockquote {
  background-color: #f9f9f9;
  border-left: 4px solid #1890ff;
  padding: 10px 15px;
  margin: 16px 0;
  color: #555;
}

.markdown-preview blockquote p {
  margin: 0;
}

.markdown-preview img {
  display: block;
  margin: 20px auto;
  max-width: 100%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.markdown-preview code {
  color: #d63384;
}

.markdown-preview pre {
  background-color: #282c34;
  color: #abb2bf;
  border-radius: 6px;
}

.markdown-preview pre code {
  color: #abb2bf;
}

.markdown-preview a {
  border-bottom: 1px dashed #1890ff;
  transition: all 0.2s ease;
}

.markdown-preview a:hover {
  border-bottom: 1px solid #1890ff;
  text-decoration: none;
}

.markdown-preview h1,
.markdown-preview h2,
.markdown-preview h3,
.markdown-preview h4,
.markdown-preview h5,
.markdown-preview h6 {
  position: relative;
}

.markdown-preview h1::before,
.markdown-preview h2::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, #1890ff, transparent);
}

/* 添加富文本编辑器样式 */
.w-e-text-container {
  background-color: #fff !important;
}

.w-e-toolbar {
  border-top-left-radius: 4px !important;
  border-top-right-radius: 4px !important;
  background-color: #fafafa !important;
}

.w-e-text-container {
  border-bottom-left-radius: 4px !important;
  border-bottom-right-radius: 4px !important;
}

.w-e-menu-item {
  transition: all 0.2s ease;
}

.w-e-menu-item:hover {
  background-color: #e6f7ff !important;
}

.w-e-menu-item.w-e-active {
  background-color: #e6f7ff !important;
  color: #1890ff !important;
}

/* 自定义编辑器内容样式 */
.w-e-text h1,
.w-e-text h2,
.w-e-text h3,
.w-e-text h4,
.w-e-text h5,
.w-e-text h6 {
  margin-top: 1em;
  margin-bottom: 0.5em;
  font-weight: 600;
  color: #222;
}

.w-e-text h1 {
  font-size: 1.8em;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.3em;
}

.w-e-text h2 {
  font-size: 1.5em;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.3em;
}

.w-e-text h3 {
  font-size: 1.25em;
}

.w-e-text p {
  margin-top: 0;
  margin-bottom: 1em;
  line-height: 1.6;
}

.w-e-text blockquote {
  padding: 0.5em 1em;
  color: #666;
  background-color: #f9f9f9;
  border-left: 4px solid #1890ff;
  margin: 1em 0;
}

.w-e-text pre {
  background-color: #282c34;
  color: #abb2bf;
  padding: 1em;
  border-radius: 4px;
  overflow: auto;
}

.w-e-text code {
  font-family: SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace;
  padding: 0.2em 0.4em;
  margin: 0;
  font-size: 85%;
  background-color: rgba(27, 31, 35, 0.05);
  border-radius: 3px;
}

.w-e-text table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 1em;
}

.w-e-text table th,
.w-e-text table td {
  padding: 6px 13px;
  border: 1px solid #dfe2e5;
}

.w-e-text table tr {
  background-color: #fff;
  border-top: 1px solid #c6cbd1;
}

.w-e-text table tr:nth-child(2n) {
  background-color: #f6f8fa;
}

.w-e-text ul,
.w-e-text ol {
  padding-left: 2em;
  margin-top: 0;
  margin-bottom: 1em;
}

.w-e-text li {
  margin-bottom: 0.25em;
}

.w-e-text a {
  color: #1890ff;
  text-decoration: none;
}

.w-e-text a:hover {
  text-decoration: underline;
}

.w-e-text img {
  max-width: 100%;
  box-sizing: border-box;
  border-radius: 4px;
  margin: 1em 0;
}

.history-item:hover {
  background-color: #f5f5f5;
}

/* 隐藏 findDOMNode 警告 */
.findDOMNode-warning {
  display: none !important;
}
